package com.wry.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * <h1>  <h1>
 *
 * @author 魏如元
 * @since 2022/9/6
 */
@RestController
@Slf4j
@RequestMapping("payment-zk")
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;

    @GetMapping
    public String payment(){
        return "springcloud with zookeeper: "+serverPort+"\t"+ UUID.randomUUID().toString();
    }
}
